package com.foolishbird.sdk.params;

import android.os.Parcel;
import android.os.Parcelable;

import com.foolishbird.sdk.params.bean.GameNoticeModel;
import com.foolishbird.sdk.params.bean.PopupConfig;
import com.foolishbird.sdk.params.bean.UserInfo;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.ArrayList;



public class LoginResponseParams extends ResponseParams<LoginResponseParams.LoginResponseData> {

    public LoginResponseParams() {
    }

    public static class LoginResponseData implements Serializable {

        @SerializedName("user")
        private UserInfo user;

        @SerializedName("token")
        private String token;

        @SerializedName("expires_in")
        private int expires_in;



        public boolean isAdult() {
            return user.getIdentifyStatus()==1;
        }

        /**
         * 弹窗间隔信息
         */
        @SerializedName("notice")
        private ArrayList<GameNoticeModel> notice;

        public ArrayList<GameNoticeModel> getNotice() {
            return notice;
        }

        public void setNotice(ArrayList<GameNoticeModel> notice) {
            this.notice = notice;
        }

        public UserInfo getUser() {
            return user;
        }

        public void setUser(UserInfo user) {
            this.user = user;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public int getExpires_in() {
            return expires_in;
        }

        public void setExpires_in(int expires_in) {
            this.expires_in = expires_in;
        }



        public LoginResponseData() {
        }






    }

}
